import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

// import 'package:xterm/flutter.dart';
// import 'package:xterm/xterm.dart';

class sshPage extends StatefulWidget {
  sshPage({Key? key, this.title = ''}) : super(key: key);

  final String title;

  @override
  _sshPage createState() => _sshPage();
}

class _sshPage extends State<sshPage> {
  // late Terminal terminal;
  @override
  void initState() {
    super.initState();
    // terminal = Terminal(onInput: onInput);
    // terminal.write('Luck Dragon Terminal');
    // terminal.write('\r\n');
    // terminal.write('\$ ');
  }

  // void onInput(String input) {
  //   if (input == '\r') {
  //     terminal.write('\r\n');
  //     terminal.write('\$ ');
  //   } else {
  //     terminal.write(input);
  //   }
  // }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: SafeArea(
        // child: TerminalView(terminal: terminal),
        child: Text("test"),
      ),
    );
  }
}
